import request from '@/utils/request'

export function getDate(params) {
  return request({
    url: 'http://localhost:8080/data/data',
    method: 'get',
    params
  })
}

export function getTypelist(type) {
  return request({
    url: 'http://localhost:8080/data/types/' + type,
    method: 'get'
  })
}

export function dataAdd(params) {
  return request({
    url: 'http://localhost:8080/data/add',
    method: 'get',
    params
  })
}
export function dataDel(params) {
  return request({
    url: 'http://localhost:8080/data/del',
    method: 'get',
    params
  })
}

export function dataUpdata(params) {
  return request({
    url: 'http://localhost:8080/data/updata',
    method: 'get',
    params
  })
}

// 根据type查找
export function typeSelect(type) {
  return request({
    url: '/data/types/' + type,
    method: 'get'
  })
}


//根据具体地类型名字去查询 种类  比如 物业类型 住宅 商业
export function getDictType(params){
	return request({
		url:'http://localhost:8080/data/types/'+params,
		method:'get',

	})
}